using System.Collections.Generic;
using NHibernate.Criterion;
using PurchaseSales.Manage.Model.Entities;
using PurchaseSales.Manage.Services;

namespace PurchaseSales.Manage.Repositories
{
    public class PurchaseCommodityRepository : Repository<PurchaseCommodity>, IPurchaseCommodityRepository
    {
        public IList<PurchaseCommodity> GetAllCommodity()
        {
            return Session.CreateCriteria(typeof(PurchaseCommodity)).List<PurchaseCommodity>();
        }
    }
}